package com.adoalonso.gwtbingmaps.client.util;

/**
 * 
 * @author adoalonso
 * 
 */
public class Util {

  private Util() {
  }

  /*
   * public static int getDistanceInMeters(HasLatLng point1, HasLatLng point2) {
   * return getDistanceInMeters(point1.getLat(), point1.getLng(),
   * point2.getLat(), point2.getLng()); }
   * 
   * public static int getDistanceInMeters(double point1Lat, double point1Lng,
   * double point2Lat, double point2Lng) { return (int)
   * Math.round(getDistanceNativeInMeters(point1Lat, point1Lng, point2Lat,
   * point2Lng)); }
   * 
   * public static VELatLong getLatLngForPointAtEastByMeters(HasLatLng point,
   * int radius) { return getNativeLatLngForPointAtEastByMeters(point.getLat(),
   * point.getLng(), radius); }
   * 
   * private static native VELatLong getNativeLatLngForPointAtEastByMeters(
   * double lat, double lon, int radius) / * -{ radius = radius / 1000; var
   * RADIUS_EARTH = 6371; // earth's mean radius in km var vlat = (lat *
   * Math.PI) / 180; //rad var vlon = (lon * Math.PI) / 180; //rad var degrees =
   * parseFloat(radius) / RADIUS_EARTH; // d = angular distance covered on
   * earth's surface
   * 
   * var p2 = new $wnd.VELatLong(0, 0); brng = 0;//i * $wnd.Math.PI / 180; //rad
   * p2.Latitude = $wnd.Math.asin(Math.sin(vlat) * $wnd.Math.cos(degrees) +
   * $wnd.Math.cos(vlat) * $wnd.Math.sin(degrees) $wnd.Math.cos(brng));
   * p2.Longitude = ((vlon + $wnd.Math.atan2($wnd.Math.sin(brng)
   * $wnd.Math.sin(degrees) * $wnd.Math.cos(vlat), $wnd.Math .cos(degrees) -
   * $wnd.Math.sin(vlat) * $wnd.Math.sin(p2.Latitude))) * 180) / $wnd.Math.PI;
   * p2.Latitude = (p2.Latitude * 180) / $wnd.Math.PI; return p2; }- * /;
   */
}